<?php
/**
 * Created by PhpStorm.
 * User: ownfi
 * Date: 2017-03-29
 * Time: 9:59
 */

namespace App\Services;

use App\Models\MasterFund;
use App\Models\Order;
use App\Models\OrderRefund;

/**
 * 师傅各种记录
 * Interface IMasterLogService
 * @package App\Services
 */
interface IMasterLogService
{

    /**
     * 缴纳诚信保证金交易记录
     * @param $master_id
     * @param $amount
     * @param $source
     * @return mixed
     */
    public function PayAssureFundLog(MasterFund $fundOrder,$pay_method);

    /**
     * 订单收款到账
     * @param Order $order
     * @return mixed
     */
    public function orderMoneyArriveLog(Order $order);

    /**
     * 对师傅罚款记录
     * @param $master_id
     * @return mixed
     */
    public function masterPunishLog(Order $order,$amount);

    /**
     * 商家要求部分退款，剩余打入师傅账户
     * @param $master_id
     * @return mixed
     */
    public function orderRefundPayLog(OrderRefund $refund,$amount);

}